package com.kelp.codetoolkit.utils

/**
 * @author: liuyuebai
 * @date: 2024/7/30 11:44
 * @description:
 */
object CollectionUtil {

    /**
     * 判断集合是否为空的
     *
     * @param collection 集合对象
     * @return 是否为空
     */
    fun isEmpty(collection: Collection<*>?): Boolean {
        return collection == null || collection.isEmpty()
    }

    fun isEmpty(map: Map<*,*>):Boolean{
        return map.isEmpty()
    }
}